package com.project.dao;

import com.project.entity.Course;
import com.project.entity.CourseTeach;
import com.project.myBeans.TeacherInfoDetail;

import java.util.List;

public interface CourseTeachMapper {

    int insert(CourseTeach courseTeach);

    int insertSelective(CourseTeach courseTeach);

    CourseTeach selectByPrimaryKey(Integer id);

    List<TeacherInfoDetail> selectTeachersByCourseid(Integer courseid);

    List<Course> selectCoursesByTeacherid(Integer teacherid);

    List<CourseTeach> selectByCondition(CourseTeach courseTeach);

    List<Integer> selectCoursesDistinctByTeacherid(Integer teacherid);

    int updateByPrimaryKeySelective(CourseTeach courseTeach);
}
